package com.smart.common.entities.core;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.ebean.Model;
import io.ebean.annotation.SoftDelete;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.MappedSuperclass;
import java.io.Serializable;

/**
 * 抽象模型根模型
 *
 * @author 夏绪秋
 * @date 2022-08-12
 */
@MappedSuperclass
@Getter
@Setter
public abstract class BaseView extends Model implements Serializable {

    /**
     * 删除标志
     */
    @SoftDelete
    @JsonIgnore
    private boolean deleted;
}
